<html><head><title>UserGuide - First steps with the Debug output (variables & operators)</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="5">UserGuide - First steps with the Debug output (variables & operators)</font></b></p>

Normally we would present here the typical "Hello World". You want to see it? 
Ok here we go with two examples: 

<p><b>Debug output</b></p><blockquote>


"Hello World" in the <a href="../reference/debugger.html">Debug</a> output window: 

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">Debug</font></b> "Hello World!"
</font></pre>

</blockquote>
<p><b>MessageRequester</b></p><blockquote>


"Hello World" in a <a href="../requester/messagerequester.html">MessageRequester()</a>: 

<pre><font face="Courier New, Courier, mono"size="2"><font color="#006666">  MessageRequester</font>("", "Hello World!")
</font></pre>

</blockquote>
<p><b>Advanced Debug example</b></p><blockquote>


We now continue with a short example using the available variable types, 
arithmetic operators and displaying the result: 

<pre><font face="Courier New, Courier, mono"size="2">  a = 5
  b = 7
  c = 3

  d = a + b  <font color="#006666">; we use the values stored in variables 'a' and 'b' and save the sum of them in 'd'</font>
  d / c      <font color="#006666">; we directly use the value of 'd' (= 12) divided by the value of 'c' (= 3) and save the result in 'd'</font>

  <b><font color="#006666">Debug</font></b> d   <font color="#006666">; will output 4</font>
</font></pre>

This way you have used variables "on the fly". To force the compiler always 
declaring variables before their first use, just use the keyword 
<a href="../reference/compilerdirectives.html">EnableExplicit</a>. 


</blockquote>
<p><b>UserGuide Navigation</b></p><blockquote>

<a href="../reference/ug_overview.html">Overview</a> | <a href="../reference/ug_variables.html">Next: Variables ></a> 
</body></html>